-- GENERATED SPELL FOR [Crusader Lord Valdelmar] --


function spell0_11898(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11898', 631, 1)
end

function spell1_11898(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(17232,pUnit)
pUnit:RegisterEvent('Sorts_11898', 665, 1)
end

function spell2_11898(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(13005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11898', 6345, 1)
end

function spell3_11898(pUnit, Event) --@Lay on Hands,Heal--
pUnit:FullCastSpellOnTarget(17233,pUnit)
pUnit:RegisterEvent('Sorts_11898', 655, 1)
end

function Sorts_11898(pUnit, Event)
local choix_sorts_11898 = math.random(0, 3)
if choix_sorts_11898 == 0 then
pUnit:RegisterEvent('spell0_11898', 1, 1)
end
if choix_sorts_11898 == 1 then
pUnit:RegisterEvent('spell1_11898', 1, 1)
end
if choix_sorts_11898 == 2 then
pUnit:RegisterEvent('spell2_11898', 1, 1)
end
if choix_sorts_11898 == 3 then
pUnit:RegisterEvent('spell3_11898', 1, 1)
end
end

function mob11898_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11898', math.random(1500, 3000), 1)
end

function mob11898_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11898_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11898_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11898, 1, 'mob11898_Action')
RegisterUnitEvent(11898, 2, 'mob11898_Leave')
RegisterUnitEvent(11898, 3, 'mob11898_Kill')
RegisterUnitEvent(11898, 4, 'mob11898_Die')
